import time
from selenium import webdriver
# 打开浏览器-创建浏览器对象
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
# 打开浏览器
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome(executable_path='chromedriver.exe')
# 输入访问地址（URL）
driver.get("http://121.43.169.97:8848/pageA.html")
time.sleep(3)
# driver = webdriver.Chrome()
# 放大浏览器
driver.maximize_window()
# 通过css定位，通过标签option的属性值-选择上海
driver.find_element_by_css_selector("[value='sh']").click()
time.sleep(3)
driver.find_element_by_css_selector("[value='gz']").click()
time.sleep(3)
driver.close()